﻿using System;

namespace Model
{
    [Flags]
    public enum AppType
    {
        Gate = 1,
        Game = 1 << 1,
        DB = 1 << 2,
        Manager = 1 << 3,  // 管理开启的服务
        Realm = 1 << 5,

        All = Gate | Game | DB | Manager | Realm
    }

    public static class AppTypeHelper
    {
        public static bool Is(this AppType a,AppType b)
        {
            if((a & b) != 0)
            {
                return true;
            }
            return false;
        }
    }
}
